/**
 * 2018/9/3 13:49:54 Wen Jun created.
 */

package com.diver.flinkdemo.entity.xxt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * 2018/09/03
 * Created by Wen Jun.
 */
@ApiModel(value = "channel对象", description = "渠道表")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("channel")
public class Channel implements java.io.Serializable {

    // 序列化版本
    private static final long serialVersionUID = -7261004800564146176L;

    //  [主键]
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String id;
    // 渠道名称
    private String name;
    // 所属省
    private String province;
    // 所属市
    private String city;
    // 所属区
    private String district;
    // 详细地址
    private String address;
    // 经度
    private String longitude;
    // 纬度
    private String latitude;
    // 半径
    private Integer radius;
    // 创建者
    private String createPersonId;
    // 创建时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    // 更新者
    private String updatePersonId;
    // 更新时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    // 删除者
    private String deletePersonId;
    // 删除标识0：未删除，1：已删除
    private Integer deleteFlag;
    // 删除时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;
    // 所属类型
    private Integer type;

}
